function saveWsdl() {

    $("#endpoint-btn").click(function() {
	// set the message
	$("#messageArea").html("server is running, please wait......")

	var sendData = {
	    "endpoint" : $("#endpoint").val()
	};
	$.ajax({
	    url : "../rest/config/endpoint",
	    type : "post",
	    data : sendData,
	    dataType : "text",
	    success : function(data) {
		$("#messageArea").html(data);
	    },
	    error : function(data) {
		$("#messageArea").html("connect error, status:"+data.status+" ,message:"+data.statusText);
		
	    }
	});
    });
}

$(function() {
    saveWsdl();
});